956a51036d2a5a87f6fbe3c4a81cca18df362405,platform/util/src/com/intellij/openapi/diagnostic/DefaultLogger.java,DefaultLogger,attachmentsToString,#Throwable#,80

Before Change



  public static String attachmentsToString(Throwable t) {
    //noinspection ThrowableResultOfMethodCallIgnored
    Throwable rootCause = ExceptionUtil.getRootCause(t);
    if (rootCause instanceof ExceptionWithAttachments) {
      return "\nAttachments:" + StringUtil.join(((ExceptionWithAttachments)rootCause).getAttachments(),
                                                new Function<Attachment, String>() {

After Change



  public static String attachmentsToString(@Nullable Throwable t) {
    //noinspection ThrowableResultOfMethodCallIgnored
    Throwable rootCause = t == null ? null : ExceptionUtil.getRootCause(t);
    if (rootCause instanceof ExceptionWithAttachments) {
      return "\nAttachments:" + StringUtil.join(((ExceptionWithAttachments)rootCause).getAttachments(),
                                                new Function<Attachment, String>() {